home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / varia / silo.lha / silo / README < prev    next >
Text File  |  1993-08-08  |  1KB  |  41 lines

  1. /* $Author: sam $ $Date: 90/07/20 11:15:00 $ $Revision: 1.1 $ */
  2.  
  3.       SILO    : An event-based simulation platform.
  4.                ----
  5.      S. Manoharan  sam@lfcs.edinburgh.ac.uk
  6.  
  7.  
  8. SILO is a library of C++ classes that provides building blocks
  9. for constructing event-based discrete event simulations. It 
  10. provides four basic classes: Entity, Event, Resource and Bin.
  11.  
  12. Refer to
  13. @book{MacDo87,
  14.    author =    "M H MacDougall",
  15.    year =    "1987",
  16.    publisher =    "MIT Press",
  17.    title =    "Simulating Computer Systems: Techniques and Tools"
  18. }
  19. for a discussion on event-based simulations and a C implementaion.
  20. SILO closely follows the description of [MacDo87].
  21.  
  22. Class Bin is a FIFO buffer of size infinity. Method `give' adds to
  23. the buffer; `take' removes from the buffer. `take' blocks when the
  24. buffer is empty.
  25.  
  26. Event *cause ( void );
  27.    returns the event with the earliest time from the event list.
  28. short cancel ( const int eid );
  29.    cancels the event with the event id eid; returns 1 if success;
  30. double simtime ( void );
  31.    returns the current simulation time;
  32.  
  33. Notes:
  34. -----
  35. 1. Use g++ version 1.37.1 or greater. The g++ class library provides
  36. classes to generate random numbers.
  37.  
  38. 2. SILO is tested under g++ 1.37.1. Test.c provides an example 
  39. explained in [MacDo87].
  40.  
  41.